package net.tensor.tensorprovider.service.impl;

import net.tensor.tensorprovider.service.BaseService;
import net.tensor.tensorprovider.service.HelloService;
import org.springframework.stereotype.Service;

/**
 * @author Q
 */
@Service
public class HelloServiceImpl implements HelloService {
    @Override
    public String getName() {
        return "xiaobiao";
    }

    public static void main(String[] args) {
        BaseService baseService=new ServiceA();
        System.out.println(baseService.getUserByName("aaa"));
        baseService=new ServiceB();
        System.out.println(baseService.getUserByName("aaa"));
    }
}
